<?php

namespace Sensio\HelloBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class HelloController extends Controller
{
    public function indexAction($id)
    {
        $em = $this->get('doctrine.orm.entity_manager')->getRepository('HelloBundle:Article');
        $data = $em->findByTime("19:03:54");
        echo '<pre>';
        print_r($data);
        echo '</pre>';
        return $this->render('HelloBundle:Hello:index.html.twig', array('name' => "Kuba"));
    }
}
